﻿<local:FadingWindow
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:iTuner"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  x:Class="iTuner.AppWindow"
  x:ClassModifier="internal"
  Title="" ShowInTaskbar="False" ResizeMode="NoResize"
  AllowsTransparency="True" Topmost="True" Background="Transparent"
  WindowStyle="None" Visibility="Visible"
  mc:Ignorable="d" d:DesignHeight="180" Width="258" Height="183"
  KeyDown="DoKeyDown">

  <Border
    x:Name="mainBorder" CornerRadius="5" Padding="1" Margin="0,0,8,8" Opacity="1"
    Background="{StaticResource iTunesOutline}">
    <Border.Effect>
      <DropShadowEffect BlurRadius="6" ShadowDepth="6" Opacity="0.30"/>
    </Border.Effect>

    <Border
      CornerRadius="5" Padding="0"
      Background="{StaticResource iTunesBackground}">

      <DockPanel Margin="4" LastChildFill="True">

        <local:TrackPanel
          x:Name="trackPanel"
          HorizontalAlignment="Stretch" DockPanel.Dock="Top" />

        <local:ControlPanel
          x:Name="controlPanel" Height="25" DockPanel.Dock="Bottom"
          PlayPause="DoPlayPause"
          PreviousTrack="DoPrevTrack"
          NextTrack="DoNextTrack" />

        <local:TaskPanel
          x:Name="taskPanel" Margin="0,4,0,4"
          EditKeys="ShowKeyEditor"
          ShowLyrics="DoShowLyrics"
          IsShuffled="{Binding Shuffle, Mode=TwoWay}" />

      </DockPanel>
    </Border>
  </Border>
</local:FadingWindow>
